//
//  SPLoginViewController.m
//  ShopProject
//
//  Created by kuangbiao on 2018/11/26.
//  Copyright © 2018 KB. All rights reserved.
//

#import "SPLoginViewController.h"
#import "SPTabBarController.h"
#import "SPRegisterViewController.h"
#import "SPForgetBtnViewController.h"

@interface SPLoginViewController ()
@property (weak, nonatomic) IBOutlet UIButton *loginBtn;
@property (weak, nonatomic) IBOutlet UITextField *mobileTxt;
@property (weak, nonatomic) IBOutlet UITextField *pwdTxt;
@property (weak, nonatomic) IBOutlet UIButton *registerBtn;

@end

@implementation SPLoginViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initView];
}

- (void)initView{
    self.navigationItem.title = @"登录";
    self.loginBtn.layer.cornerRadius = 4.0f;
    self.registerBtn.layer.cornerRadius = 12.0f;
    
//    self.registerBtn.layer.borderColor = [UIColor colorWithHexString:@"ea4862"].CGColor;
//    self.registerBtn.layer.borderWidth = 1.0f;
    
}


- (IBAction)loginBtnClickAction:(UIButton *)sender {
    SPTabBarController *tabVC = [[SPTabBarController alloc] init];
    [self presentViewController:tabVC animated:YES completion:nil];
}
//忘记密码按钮点击事件
- (IBAction)forgetBtnClickAction:(id)sender {
    SPForgetBtnViewController *forgetVC = [[SPForgetBtnViewController alloc] initWithNibName:@"SPForgetBtnViewController" bundle:nil];
    [self.navigationController pushViewController:forgetVC animated:YES];
}
//注册按钮点击事件
- (IBAction)registerBtnClickAction:(id)sender {
    SPRegisterViewController *registerVC = [[SPRegisterViewController alloc] initWithNibName:@"SPRegisterViewController" bundle:nil];
    [self.navigationController pushViewController:registerVC animated:YES];
}

@end
